<?php

require_once dirname(__FILE__).'/../lib/posicionesGeneratorConfiguration.class.php';
require_once dirname(__FILE__).'/../lib/posicionesGeneratorHelper.class.php';

/**
 * posiciones actions.
 *
 * @package    ehockey
 * @subpackage posiciones
 * @author     Your name here
 * @version    SVN: $Id: actions.class.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
 */
class posicionesActions extends autoPosicionesActions
{
	public function executeEdit(sfWebRequest $request){
		$this->redirect('@posiciones');
	}
	
	public function executeNew(sfWebRequest $request){
		$this->redirect('@posiciones');
	}
	
	public function executeDelete(sfWebRequest $request){
		$this->redirect('@posiciones');
	}
	
	public function executeListTablaDePosiciones(sfWebRequest $request){
		$this->torneo = $this->getRoute()->getObject();
		$this->form = $this->configuration->getForm($this->torneo);
		
		$this->equipos = $this->torneo->getTablaDePosiciones();
	}
	
	public function executeListVerFixture(sfWebRequest $request){
		$this->torneo = $this->getRoute()->getObject();
		$this->form = $this->configuration->getForm($this->torneo);
		$this->partidos = $this->torneo->getPartidosOrdenadosPorFecha();
	}
	
	public function executeListVerGoleadores(sfWebRequest $request){
		$this->torneo = $this->getRoute()->getObject();
		$this->form = $this->configuration->getForm($this->torneo);
		$this->goles = $this->torneo->getGoles();
	}
}
